package com.lagou.client.config;

import com.lagou.api.user.UserService;
import com.lagou.client.utils.RpcClientProxy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class ServiceBeanRegister {

    @Autowired
    private RpcClientProxy rpcClientProxy;



    @Bean
    public UserService registerUserService(){
        return (UserService) rpcClientProxy.createProxy(UserService.class);
    }

}
